package com.sxc.bean;

import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElementWrapper;
import jakarta.xml.bind.annotation.XmlRootElement;

import java.util.List;

@XmlRootElement(name = "message")
public class Message {

    private List<Field> head;
    private List<Field> body;

    @XmlElementWrapper(name = "head")
    @XmlElement(name = "field")
    public List<Field> getHead() {
        return head;
    }

    public void setHead(List<Field> head) {
        this.head = head;
    }

    @XmlElementWrapper(name = "body")
    @XmlElement(name = "field")
    public List<Field> getBody() {
        return body;
    }

    public void setBody(List<Field> body) {
        this.body = body;
    }
}
